<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

namespace App\Http\Requests;

class CreateCompanyRequest extends CommonRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'required',
            'cover_url' => 'required',
            'brief' => 'required',
            'area' => 'required|int|min:12|max:14',
            'liaison_man' => 'required',
            'liaison_phone' => 'required',
            'legal_person_id_card_number' => 'required',
            'legal_person_name' => 'required',
            'company_phone' => 'required',
            'company_email' => 'required',
            'social_credit_code' => 'required',
            'address' => 'required',
            // 'registered_capital' => 'required',
            // 'set_up_date' => 'required',
            'people_number' => 'required',
            'range' => 'required',
            'business_license' => 'required',
            'vehicle_number' => 'required',
        ];
    }
}
